﻿<div class="item">
    <div class="label">
        @if (Required)
        {
            <span style="color:#f00;">*</span>
        }
        <span>@Label</span>
    </div>
    @ChildContent
</div>

@code {
    [Parameter] public string Label { get; set; }
    [Parameter] public bool Required { get; set; }
    [Parameter] public RenderFragment ChildContent { get; set; }
}